Update main.yml #11
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: Docker Build And Push | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Build LEGO Technic | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install podman | |
uses: gacts/install-podman@v1 | |
#with: | |
# kind: unstable # `testing` by default | |
# qemu: true # `false` by default | |
- run: podman version | |
- name: Build Debian package | |
uses: docker/build-push-action@v5 | |
with: | |
push: false | |
target: builder | |
context: . | |
tags: debilin/lego-technic-deb:latest | |
- name: Push to Gemfury | |
run: | | |
debfile=$(find dist/*.deb) | |
curl -F package=@$debfile https://${{ secrets.GEMFURY_TOKEN }}@push.fury.io/debilin/ | |
- name: Build Docker Image | |
id: buildAndPushImage | |
uses: MaximilianoBz/dockerhub-buildpush@v1.0 | |
with: | |
registry_url: 'docker.io' | |
repository_name: 'lego-technic' | |
user_name: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
image_version: 'nightly' | |
docker_file: '.' | |
- name: Get pre step result output image_pull_url | |
run: echo "The time was ${{ steps.buildAndPushImage.outputs.image_pull_url }}" |