-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (32 loc) · 1.32 KB
/
container.yml
File metadata and controls
37 lines (32 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build container
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
build_container_github_action:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v1
- uses: rlespinasse/github-slug-action@v2.x
- name: Login to registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u etherisc --password-stdin
- name: Build container
run: docker build -t ghcr.io/etherisc/gif-brownie-container-ghaction:${{ env.GITHUB_REF_SLUG }} -f Dockerfile.github-action .
- name: Publish container
run: docker push ghcr.io/etherisc/gif-brownie-container-ghaction:${{ env.GITHUB_REF_SLUG }}
build_dev_container:
runs-on: ubuntu-latest
if: github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v1
- uses: rlespinasse/github-slug-action@v2.x
- name: Login to registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u etherisc --password-stdin
- name: Build container for devcontainer
run: docker build -f Dockerfile.devcontainer -t ghcr.io/etherisc/gif-brownie-devcontainer:${{ env.GITHUB_REF_SLUG }} .
- name: Publish container for devcontainer
run: docker push ghcr.io/etherisc/gif-brownie-devcontainer:${{ env.GITHUB_REF_SLUG }}