-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (32 loc) · 1000 Bytes
/
docker_image.yml
File metadata and controls
34 lines (32 loc) · 1000 Bytes
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
name: Publish Docker image
on:
push:
branches: master
jobs:
push_to_registry:
if: ${{ github.repository == 'ChainShot/Solidity-Image' }}
name: Push Docker image
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
# https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token
password: ${{ secrets.CR_PAT }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
push: true
# We can make this dynamic too, by extracting solidity version from the config.
tags: |
ghcr.io/chainshot/solidity:0.7.5