Skip to content

Commit

Permalink
Merge branch 'update-action'
Browse files Browse the repository at this point in the history
  • Loading branch information
WolleTD committed Jan 30, 2024
2 parents ef87cee + 29db860 commit 6e991fa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@ on:
branches: [ master ]
workflow_dispatch:

env:
DOCKER_BUILDKIT: 1

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Pull repository
uses: actions/checkout@v3
- name: Build the image
run: docker build . --tag wolletd/wg-setup:latest
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push the image
run: docker push wolletd/wg-setup:latest
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the image
uses: docker/build-push-action@v5
with:
context: .
push: true
provenance: false
tags: |
docker.io/wolletd/wg-setup:latest
ghcr.io/wolletd/wg-setup:latest
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run tests
working-directory: ${{github.workspace}}/tests
run: ./run_tests.sh

docker-setup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: sudo modprobe wireguard
- name: Run docker test
working-directory: ${{github.workspace}}/tests
Expand Down

0 comments on commit 6e991fa

Please sign in to comment.