Skip to content

Commit

Permalink
Revamped GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mocdaniel committed Apr 6, 2022
1 parent ad0f331 commit 4ed6f72
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Docker Image CI

on:
push:
branches:
- 'main'

jobs:
docker:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image(s)
uses: docker/build-push-action@v2
with:
push: true
context: .
platforms: linux/amd64
tags: dbodky/dashing-icinga2:latest
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker buildx
Expand All @@ -19,7 +21,9 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push image(s)
uses: docker/build-push-action@v1
uses: docker/build-push-action@v2
with:
push: true
tags: ${{ github.event.release.tag_name }}
context: .
platforms: linux/amd64
tags: dbodky/dashing-icinga2:${{ github.event.release.tag_name }}

0 comments on commit 4ed6f72

Please sign in to comment.