v0.1.3 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and public image | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
push_to_registry: | |
name: Push Docker to repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/[email protected] | |
- name: Log in to artifact storage | |
uses: docker/[email protected] | |
with: | |
registry: ${{ secrets.REGISTRY_URL }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Extract metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/[email protected] | |
with: | |
images: ${{ secrets.REGISTRY_URL }}/${{ secrets.REGISTRY_IMAGE }} | |
- name: Build and push Docker image | |
id: push | |
uses: docker/[email protected] | |
with: | |
context: . | |
file: ./dockerfile | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} |