You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
872 B
35 lines
872 B
name: Publish Docker |
|
|
|
on: |
|
push: |
|
branches: |
|
- release |
|
|
|
jobs: |
|
publish-docker: |
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
- name: Checkout repository |
|
uses: actions/checkout@v3 |
|
- name: Docker meta |
|
id: meta |
|
uses: docker/metadata-action@v4 |
|
with: |
|
images: | |
|
excalidraw/excalidraw |
|
tags: | |
|
type=semver,pattern={{version}} |
|
type=semver,pattern={{major}}.{{minor}} |
|
- name: Login to DockerHub |
|
uses: docker/login-action@v2 |
|
with: |
|
username: ${{ secrets.DOCKER_USERNAME }} |
|
password: ${{ secrets.DOCKER_PASSWORD }} |
|
- name: Build and push |
|
uses: docker/build-push-action@v4 |
|
with: |
|
context: . |
|
push: true |
|
tags: ${{ steps.meta.outputs.tags }} |
|
labels: ${{ steps.meta.outputs.labels }}
|
|
|