Skip to content

Commit

Permalink
fsck
Browse files Browse the repository at this point in the history
  • Loading branch information
PartTimeLegend committed Mar 26, 2024
1 parent 5951b92 commit e2113f3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
env:
BUILD_DATE: ${{ github.event.head_commit.timestamp }}
IMAGE_NAME: hammy-mchamilton
REPO_OWNER: parttimelegend

steps:
- name: Checkout code
Expand All @@ -31,12 +32,8 @@ jobs:
id: generate_tag
run: echo ::set-output name=tag::${GITHUB_RUN_NUMBER}

- name: Convert repository owner to lowercase
id: name
run: echo "::set-output name=repository_owner::${{ github.repository_owner.lowercase }}"

- name: Build the Docker image
run: docker build --file Dockerfile --tag ghcr.io/${{ steps.name.outputs.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.generate_tag.outputs.tag }} --tag ghcr.io/${{ steps.name.outputs.repository_owner }}/${{ env.IMAGE_NAME }}:latest --build-arg BUILD_DATE=${BUILD_DATE} .
run: docker build --file Dockerfile --tag ghcr.io/${{ env.REPO_OWNER }}/${{ env.IMAGE_NAME }}:${{ steps.generate_tag.outputs.tag }} --tag ghcr.io/${{ env.REPO_OWNER }}/${{ env.IMAGE_NAME }}:latest --build-arg BUILD_DATE=${BUILD_DATE} .

- name: Push the Docker image to GitHub Container Registry
run: docker push ghcr.io/${{ steps.name.outputs.repository_owner }}/${{ env.IMAGE_NAME }}:${{ steps.generate_tag.outputs.tag }} && docker push ghcr.io/${{ steps.name.outputs.repository_owner }}/${{ env.IMAGE_NAME }}:latest
run: docker push ghcr.io/${{ env.REPO_OWNER }}/${{ env.IMAGE_NAME }}:${{ steps.generate_tag.outputs.tag }} && docker push ghcr.io/${{ env.REPO_OWNER }}/${{ env.IMAGE_NAME }}:latest

0 comments on commit e2113f3

Please sign in to comment.