Skip to content

Merge pull request #12 from amnezia-vpn/updates #7

Merge pull request #12 from amnezia-vpn/updates

Merge pull request #12 from amnezia-vpn/updates #7

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
run: |
make docker
env:
DOCKER_IMAGE: amneziavpn/amneziawg-exporter
DOCKER_USER: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}