mirror of
https://github.com/parrazam/radicale-docker.git
synced 2024-09-28 00:22:00 +02:00
Removed github action from push branches and updated actions to main versions
This commit is contained in:
parent
edff35bfb0
commit
c551055992
1 changed files with 6 additions and 6 deletions
12
.github/workflows/docker-registry.yml
vendored
12
.github/workflows/docker-registry.yml
vendored
|
@ -3,7 +3,6 @@ name: Build and Publish
|
||||||
on:
|
on:
|
||||||
# run it on push to the default repository branch
|
# run it on push to the default repository branch
|
||||||
push:
|
push:
|
||||||
branches: [master, develop]
|
|
||||||
# Publish semver tags as releases.
|
# Publish semver tags as releases.
|
||||||
tags: [ 'v*.*.*' ]
|
tags: [ 'v*.*.*' ]
|
||||||
# run it during pull request
|
# run it during pull request
|
||||||
|
@ -33,15 +32,13 @@ jobs:
|
||||||
# steps to perform in job
|
# steps to perform in job
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Install the cosign tool except on PR
|
# Install the cosign tool except on PR
|
||||||
# https://github.com/sigstore/cosign-installer
|
# https://github.com/sigstore/cosign-installer
|
||||||
- name: Install cosign
|
- name: Install cosign
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: sigstore/cosign-installer@1e95c1de343b5b0c23352d6417ee3e48d5bcd422
|
uses: sigstore/cosign-installer@main
|
||||||
with:
|
|
||||||
cosign-release: 'v1.4.0'
|
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
|
@ -76,11 +73,14 @@ jobs:
|
||||||
# https://github.com/docker/metadata-action
|
# https://github.com/docker/metadata-action
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
|
uses: docker/metadata-action@v3
|
||||||
with:
|
with:
|
||||||
images: |
|
images: |
|
||||||
${{ env.IMAGE_NAME }}
|
${{ env.IMAGE_NAME }}
|
||||||
${{ env.GH_REPO }}/${{ env.IMAGE_NAME }}
|
${{ env.GH_REPO }}/${{ env.IMAGE_NAME }}
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
|
||||||
- name: Build image and push to Docker Hub and GitHub Container Registry
|
- name: Build image and push to Docker Hub and GitHub Container Registry
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
|
|
Loading…
Reference in a new issue