Skip to content

Commit

Permalink
Adapt github action for GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
sonicaj committed Apr 23, 2024
1 parent e8bf9e5 commit 7ba6c2d
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,24 @@ name: build_image
on:
push:
branches:
- 'master_blocked'
- 'master'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- 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
uses: docker/setup-buildx-action@v2
- name: Login to GHCR
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: ixsystems/apps_validation:latest
tags: ghcr.io/truenas/apps_validation:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 7ba6c2d

Please sign in to comment.