Skip to content

add instruction how to download container image directly from github … #11

add instruction how to download container image directly from github …

add instruction how to download container image directly from github … #11

Workflow file for this run

name: Build and Push Docker Image for AMD64,ARMv7,ARM64
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: linux/arm/v7,linux/arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get version from git
id: git_version
run: echo "VERSION=$(git describe --tags --always | sed 's/\.0-/./')" >> $GITHUB_ENV
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
vgrebenschikov/amneziawg-mikrotik:latest
vgrebenschikov/amneziawg-mikrotik:${{ env.VERSION }}