Skip to content

Commit

Permalink
Create workflow to auto publish dockers
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger committed Jun 29, 2024
1 parent a4b7fa8 commit c5c26ee
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-develop-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Develop Docker Image

on:
push:
branches:
- develop

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: Archmonger/Conreq:develop
24 changes: 24 additions & 0 deletions .github/workflows/publish-latest-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish Latest Docker Image

on:
release:
types: [published]

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: Archmonger/Conreq:latest

0 comments on commit c5c26ee

Please sign in to comment.