mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-05-23 07:09:03 +02:00
22 lines
867 B
YAML
22 lines
867 B
YAML
name: Docker Image CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install buildah
|
|
run: |
|
|
sudo apt-get install -qq -y software-properties-common
|
|
sudo add-apt-repository -y ppa:projectatomic/ppa
|
|
sudo apt-get update -qq
|
|
sudo apt-get -qq -y install buildah
|
|
- name: Build & push the Docker image
|
|
run: |
|
|
buildah bud --format=docker --layers -t embarkstudios/wireguard-ui:latest -t embarkstudios/wireguard-ui:${GITHUB_SHA} -f Dockerfile .
|
|
buildah push --creds ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --format=v2s2 embarkstudios/wireguard-ui:latest
|
|
buildah push --creds ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --format=v2s2 embarkstudios/wireguard-ui:${GITHUB_SHA}
|