-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated GitHub Docker publish workflow
- Loading branch information
1 parent
1dfc6e0
commit 3b7c9c4
Showing
1 changed file
with
8 additions
and
9 deletions.
There are no files selected for viewing
17 changes: 8 additions & 9 deletions
17
.github/workflows/packages.yml → .github/workflows/docker-publish.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
name: Packages | ||
name: Docker | ||
|
||
on: | ||
release: | ||
types: | ||
- released | ||
|
||
jobs: | ||
build-push: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Setup QEMU | ||
- name: Setup Docker QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Setup BuildX | ||
- name: Setup Docker buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login into GitHub Container Registry | ||
- name: Login into registry ghcr.io | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64 | ||
push: true | ||
tags: | | ||
ghcr.io/${{ github.repository_owner }}/dvpn-node:latest | ||
tags: ghcr.io/${{ github.repository_owner }}/dvpn-node:latest |