Skip to content

Update docker-image.yml #13

Update docker-image.yml

Update docker-image.yml #13

Workflow file for this run

name: Docker Image CI
on:
push:
tags:
- '*'
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- 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: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
lotuxpunk/hermes:${{ steps.get_version.outputs.VERSION }}
lotuxpunk/hermes:latest
ghcr.io/lotuxpunk/hermes:${{ steps.get_version.outputs.VERSION }}
ghcr.io/lotuxpunk/hermes:latest