Skip to content

[FIX] if needs to be ended with : #23

[FIX] if needs to be ended with :

[FIX] if needs to be ended with : #23

Workflow file for this run

name: ci
on:
push:
branches:
- "main"
tags:
- "v*"
jobs:
docker:
runs-on: ubuntu-latest
name: Build and push Docker image
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
# list of Docker images to use as base name for tags
images: |
ethnexus/ena-upload-ms
# generate Docker tags based on the following events/attributes
tags: |
# type=schedule
type=ref,event=branch
type=ref,event=pr
# type=sha
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Set up QEMU
if: github.event_name != 'pull_request'
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
if: github.event_name != 'pull_request'
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ethnexus
password: ${{ secrets.DOCKER_PASS }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: api
push: ${{ github.event_name != 'pull_request' }}
# tags: ethnexus/ena-upload-ms:latest,ethnexus/ena-upload-ms:1.0.0
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
PushContainerReadme:
runs-on: ubuntu-latest
name: Push README to Docker Hub
steps:
- name: git checkout
uses: actions/checkout@v3
- name: push README to Dockerhub
uses: christian-korneck/update-container-description-action@v1
env:
DOCKER_USER: ethnexus
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
with:
destination_container_repo: ethnexus/ena-upload-ms
provider: dockerhub
short_description: "ENA Upload Microservice"
readme_file: "README.md"