Skip to content

Commit

Permalink
Add environment
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilKWarmdahl committed Oct 22, 2024
1 parent 53f86d2 commit 81ae5bc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/docker-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ env:
jobs:
release-base-image:
runs-on: ubuntu-latest
environment: release
env:
IMAGE_NAME: "concordium/base"
DOCKERHUB_USERNAME: ${{secrets.DOCKERHUB_USERNAME}}
DOCKERHUB_TOKEN: ${{secrets.DOCKERHUB_TOKEN}}

steps:
- name: Check if image exist
Expand All @@ -22,9 +25,13 @@ jobs:
if [ exitcode -eq "1" ]; then
echo "Error: ${{env.IMAGE_NAME}}:rust${{env.RUST_VERSION}}-ghc${{env.GHC_VERSION}} already exist"
fi
- name: Login to docker
run: |
# echo ${{env.PASS}} | docker login --username ${{env.USERNAME}} --password-stdin
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ env.DOCKERHUB_USERNAME }}
# password: ${{ env.DOCKERHUB_TOKEN }}

- name: Clone repo
uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 81ae5bc

Please sign in to comment.