Skip to content

Commit

Permalink
Enable docker building on each commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ptorsten committed Jan 21, 2024
1 parent 82769d1 commit 81b84f2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Docker Release CI

on:
push:
tags:
- 'v*'
jobs:
build:

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

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

- name: Login to container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PSW }}

- name: Build & Push Image
run: |
docker buildx build --push --platform linux/amd64,linux/arm64 --tag ptorstensson/aw-gateway-rs:dev --tag ptorstensson/aw-gateway-rs:$(date +%s) .

0 comments on commit 81b84f2

Please sign in to comment.