Update docker-image.yml

This commit is contained in:
Aune 2022-12-07 16:17:50 +01:00 committed by GitHub
parent 8c947a1096
commit bd657bf2ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,18 +1,19 @@
name: Docker Image CI
name: Docker Image for Releases
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag aunefyren/wrapperr:beta
- uses: actions/checkout@v2
- uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: docker.io
repository: aunefyren/wrapperr
tags: latest, ${{ github.ref }}