Skip to content

Commit

Permalink
ci: Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
castus committed Oct 20, 2023
1 parent ff5da14 commit 3a8fa6b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,35 @@ jobs:

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

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

- name: Docker Setup Buildx
uses: docker/[email protected]
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: c4stus/lights-api
tags: type=sha

- name: Docker Login
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v3.2.0
uses: docker/build-push-action@v5
with:
platforms: |
linux/amd64
context: .
push: true
tags: "c4stus/lights-api:${{ github.head_ref }}"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 3a8fa6b

Please sign in to comment.