Skip to content

Commit

Permalink
✨Add 'Push images' stage in the CI GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
Borie, Niels committed Mar 4, 2024
1 parent fc5e4e5 commit f56447f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Clean up unnecessary directories
- name: Clean up unnecessary directories
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Build and push image
- name: ⚙️ Build and push image
run: |
make build-all-images
- name: Image digest
- name: 📤 Push images
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
run: |
make push-all-images
- name: 🎉 Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit f56447f

Please sign in to comment.