Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklambourne committed Nov 9, 2021
1 parent 6f0396c commit 583802a
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/docker_image_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Docker @latest

on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]

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
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: coedl/elpis:latest
33 changes: 33 additions & 0 deletions .github/workflows/docker_image_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Docker Image on Release

on:
push:
tags:
- 'v*.*.*'

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
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: coedl/elpis:${GITHUB_REF:10}

0 comments on commit 583802a

Please sign in to comment.