Skip to content

Commit

Permalink
.github/workflows/build-and-deploy.yml: simplify the deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Aug 30, 2024
1 parent 76754f1 commit 215744e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Create image and Deploy

env:
IMAGE_TAG: loris:3.2.1
IMAGE_TAG: loris:dev

on:
workflow_dispatch: ~
push:
branches:
- 'master'
Expand All @@ -13,27 +14,23 @@ 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
uses: docker/setup-buildx-action@v1
uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: true
tags: |
acdhch/${{ env.IMAGE_TAG }}
Expand Down

0 comments on commit 215744e

Please sign in to comment.