Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
az committed Jan 28, 2025
1 parent 66a0859 commit b0f7b7c
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/buid-push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,23 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build Docker image
run: |
docker build -t ghcr.io/analyticsmd/github-runner:latest \
-t ghcr.io/analyticsmd/github-runner:${{ github.sha }} \
--platform=linux/amd64 .
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
logout: false
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push Docker image
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
docker push ghcr.io/analyticsmd/github-runner:latest
- name: Build and Push Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: |
ghcr.io/analyticsmd/github-runner:latest
ghcr.io/analyticsmd/github-runner:${{ github.sha }}
- name: Send Success Slack notification
if: success()
Expand Down

0 comments on commit b0f7b7c

Please sign in to comment.