Skip to content

Commit

Permalink
Merge pull request #13 from HydrasCo/ci_check_main
Browse files Browse the repository at this point in the history
Publish image on main branch
  • Loading branch information
owenthereal authored Aug 10, 2022
2 parents f9ca59d + 956cabd commit 0da3de9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ jobs:
# Docker push hydra
- name: Login to ghcr.io
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v2.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker push hydra to ghcr.io
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: docker/bake-action@master
with:
workdir: ./hydra
Expand All @@ -107,7 +107,7 @@ jobs:
# Docker push hydra-all
- name: Configure AWS credentials
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
Expand All @@ -116,14 +116,14 @@ jobs:
mask-aws-account-id: no

- name: Login to Amazon ECR
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
id: login-ecr
uses: aws-actions/amazon-ecr-login@v1
with:
registries: "011789831835"

- name: Docker push hydra-all to ECR
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
uses: docker/bake-action@master
with:
workdir: ./hydra
Expand Down

0 comments on commit 0da3de9

Please sign in to comment.