srpmproc/.github/workflows/oci.yml

18 lines
459 B
YAML
Raw Normal View History

2020-12-17 11:39:32 +00:00
name: OCI
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Login to Docker Hub
2020-12-17 12:08:19 +00:00
run: docker login --username mstg --password ${{secrets.DOCKER_SECRET}}
2020-12-17 11:39:32 +00:00
- name: Build the Docker image
2020-12-17 12:10:16 +00:00
run: docker build . -t docker.io/mstg/srpmproc:${GITHUB_REF#refs/tags/}
2020-12-17 11:39:32 +00:00
- name: Push to Docker Hub
2020-12-17 12:10:16 +00:00
run: docker push docker.io/mstg/srpmproc:${GITHUB_REF#refs/tags/}