Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahAbuirmeileh authored Oct 24, 2023
1 parent 5ea6082 commit ed6a2dc
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ jobs:
packages: write

steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: actions/checkout@v3

- name: Set image version (tag)
id: image_version
run: echo "gitsha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV

run: echo "gitsha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: login to Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: sarahabuirmeileh
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/sarahabuirmeileh/serve-and-shine:${{ steps.image_version.outputs.gitsha }}

- name: Publish Docker image
- name: Puplish docker image
run: docker push ghcr.io/sarahabuirmeileh/serve-and-shine:${{ steps.image_version.outputs.gitsha }}


- name: Configure AWS CLI
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} && aws configure set region ${{ secrets.AWS_REGION }}

Expand Down

0 comments on commit ed6a2dc

Please sign in to comment.