Publish 'dockerful' to Docker Hub #815
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish 'dockerful' to Docker Hub | |
on: | |
schedule: | |
# # Run on every Tuesday and Friday 07:00 UTC | |
- cron: '00 7 * * 2,5' | |
jobs: | |
build-publish: | |
environment: Publish to Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Git checkout | |
uses: actions/checkout@v3 | |
- | |
name: Build 'dockerful' | |
id: build-image-dockerful | |
uses: redhat-actions/buildah-build@v2 | |
with: | |
oci: false | |
context: . | |
containerfiles: Dockerfile.dockerful | |
image: yanwk/barotrauma-server | |
tags: dockerful | |
- | |
name: Push to Docker Hub | |
id: push-to-dockerhub | |
uses: redhat-actions/push-to-registry@v2 | |
with: | |
image: yanwk/barotrauma-server | |
tags: ${{ steps.build-image-dockerful.outputs.tags }} | |
registry: docker.io | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_ACCESSTOKEN }} | |
- | |
name: Print image url | |
run: echo "Image pushed to ${{ steps.push-to-dockerhub.outputs.registry-paths }}" |