one more level of depth #35
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: Publish Docker Images | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
jobs: | |
publish-voms-atlas: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Build and Publish to Registry | |
if: "!(startsWith(github.ref, 'refs/tags/'))" | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: kratsg/voms-atlas | |
dockerfile: voms-atlas/Dockerfile | |
path: voms-atlas | |
tags: latest | |
- name: Build and Publish to Registry with Release Tag | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: kratsg/voms-atlas | |
dockerfile: voms-atlas/Dockerfile | |
path: voms-atlas | |
tags: latest,latest-stable | |
tag_with_ref: true | |
publish-eos-krb5: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Build and Publish to Registry | |
if: "!(startsWith(github.ref, 'refs/tags/'))" | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: kratsg/eos-krb5 | |
dockerfile: eos-krb5/Dockerfile | |
path: eos-krb5 | |
tags: latest | |
- name: Build and Publish to Registry with Release Tag | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: kratsg/eos-krb5 | |
dockerfile: eos-krb5/Dockerfile | |
path: eos-krb5 | |
tags: latest,latest-stable | |
tag_with_ref: true | |
publish-eos-krb5-shell2http: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Build and Publish to Registry | |
if: "!(startsWith(github.ref, 'refs/tags/'))" | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: kratsg/eos-krb5-shell2http | |
dockerfile: eos-krb5-shell2http/Dockerfile | |
path: eos-krb5-shell2http | |
tags: latest | |
- name: Build and Publish to Registry with Release Tag | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
repository: kratsg/eos-krb5-shell2http | |
dockerfile: eos-krb5-shell2http/Dockerfile | |
path: eos-krb5-shell2http | |
tags: latest,latest-stable | |
tag_with_ref: true | |
publish-cern-phonebook: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Publish to Registry | |
if: "!(startsWith(github.ref, 'refs/tags/'))" | |
uses: docker/build-push-action@v4 | |
with: | |
dockerfile: cern-phonebook/Dockerfile | |
context: cern-phonebook | |
push: true | |
tags: | | |
kratsg/cern-phonebook:latest | |
ghcr.io/kratsg/cern-phonebook:latest | |
- name: Build and Publish to Registry with Release Tag | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: docker/build-push-action@v4 | |
with: | |
dockerfile: cern-phonebook/Dockerfile | |
context: cern-phonebook | |
push: true | |
tags: | | |
kratsg/cern-phonebook:latest | |
kratsg/cern-phonebook:latest-stable | |
ghcr.io/kratsg/cern-phonebook:latest | |
ghcr.io/kratsg/cern-phonebook:latest-stable | |
tag_with_ref: true |