Tanguy Herbron
55e5e4f2cb
Some checks failed
S3 mount container image build / build (push) Failing after 11s
30 lines
905 B
YAML
30 lines
905 B
YAML
name: S3 mount container image build
|
|
on:
|
|
release:
|
|
types: [published]
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
container:
|
|
image: docker:latest
|
|
runs-on: [arm64]
|
|
|
|
steps:
|
|
- name: Docker pull
|
|
run: docker pull ubuntu:latest
|
|
- name: Var envs
|
|
run: export
|
|
- name: Make tag
|
|
id: tag_vars
|
|
run: echo "IMAGE_NAME=$(echo \"$GITHUB_SERVER_URL\"/\"$GITHUB_REPOSITORY\" | tr '[:upper:]' '[:lower:]' | cut -d '/' -f3-)" >> $GITHUB_OUTPUT
|
|
- name: Debug tag
|
|
run: echo "$GITHUB_SERVER_URL"/"$GITHUB_REPOSITORY" | tr '[:upper:]' '[:lower:]'
|
|
- name: Print tag
|
|
run: echo ${{ steps.tag_vars.outputs.IMAGE_NAME }}
|
|
- name: Docker retag
|
|
run: docker tag ubuntu:latest ${{ steps.tag_vars.outputs.IMAGE_NAME }}:latest
|
|
- name: Docker push
|
|
run: docker push ${{ steps.tag_vars.outputs.IMAGE_NAME }}:latest
|